import request from '@/utils/request'

// 查询已购买产品学习记录列表
export function listStudyRecords(query) {
  return request({
    url: '/st/studyRecords/list',
    method: 'get',
    params: query
  })
}

// 查询已购买产品学习记录详细
export function getStudyRecords(id) {
  return request({
    url: '/st/studyRecords/' + id,
    method: 'get'
  })
}

// 新增已购买产品学习记录
export function addStudyRecords(data) {
  return request({
    url: '/st/studyRecords',
    method: 'post',
    data: data
  })
}

// 修改已购买产品学习记录
export function updateStudyRecords(data) {
  return request({
    url: '/st/studyRecords',
    method: 'put',
    data: data
  })
}

// 删除已购买产品学习记录
export function delStudyRecords(id) {
  return request({
    url: '/st/studyRecords/' + id,
    method: 'delete'
  })
}
